(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  this.AuthorsRoutes = (function(_super) {

    __extends(AuthorsRoutes, _super);

    function AuthorsRoutes() {
      return AuthorsRoutes.__super__.constructor.apply(this, arguments);
    }

    AuthorsRoutes.prototype.routes = {
      "Authors/Listing*path": "Listing",
      "Authors/Show/:authorId": "Show"
    };

    AuthorsRoutes.prototype.Listing = function() {
      var layout, model, view;
      layout = new LibraryLayoutView();
      model = new AuthorsModel();
      model.set("Letter", Url.GetParameterByName("letter"));
      return view = new AuthorView({
        model: model
      });
    };

    AuthorsRoutes.prototype.Show = function(authorId) {
      var layout, model, view;
      layout = new LibraryLayoutView();
      model = new AuthorsBooksModel();
      model.set("AuthorId", authorId);
      return view = new AuthorsBooksView({
        model: model
      });
    };

    return AuthorsRoutes;

  })(Backbone.Router);

}).call(this);
